const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'https://www.jskydl.net/server/', // 目标接口域名
        changeOrigin: true,
        pathRewrite: {'^/api': ''} // 重写路径，去掉/api前缀
      },
      '/get': {
        target: 'https://thingsboard1.jskydl.net/api/', // 目标接口域名
        changeOrigin: true,
        pathRewrite: {'^/get': ''}
      }
    }
  }
})
